class OrderModel {
  var orderId;
  var targetId;
  var name;
  var address;
  var amount;
  var title;
  var type;
  var remark;
  var status;

  OrderModel(
      {this.orderId,
        this.targetId,
        this.name,
        this.address,
        this.amount,
        this.title,
        this.type,
        this.status,
        this.remark});

  OrderModel.fromJson(Map<String, dynamic> json) {
    orderId = json['orderId'];
    targetId = json['targetId'];
    name = json['name'];
    address = json['address'];
    amount = json['amount'];
    title = json['title'];
    type = json['type'];
    status = json['status'];
    remark = json['remark'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['orderId'] = this.orderId;
    data['targetId'] = this.targetId;
    data['name'] = this.name;
    data['address'] = this.address;
    data['amount'] = this.amount;
    data['title'] = this.title;
    data['type'] = this.type;
    data['remark'] = this.remark;
    data['status'] = this.status;
    return data;
  }
}